#-*- coding: UTF-8 -*-
import FooClass
from time import ctime
pystr = 'Python'
print pystr
aslist = ['1']
if len(aslist) > 0:
    print 'aslist is not empty'
else:
    print 'aslist is empty'
counter = 0
while counter < 3:
    print 'loop #%d' % (counter)
    counter += 1
squared = [x ** 2 for x in range(8) if not x % 2]
#逗号可以抑制换行的输出
for i in squared:
    print '%d' % (i),

def foo(debug=True):
    if debug:
        print 'in debug mode'
    print 'done'
foo()

x = 1
print 12 if x > 1 else 14
print ctime()

def foo():
    pass

print globals().keys()
